<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="../../../../WEB-INF/myTag.tld" prefix="my"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>上报信息维护</title>
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/animate.min.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/iCheck/custom.css" rel="stylesheet">
</head>
<body>

	<div class="ibox-content">

		<form id="subForm" method="post" class="form-horizontal">
			<input type="hidden" name="xsid" id="xsid" value="${xssb.xsid}">
			<input type="hidden" name="tplj" id="tplj" value="${xssb.tplj}">
			<input type="hidden" name="wjlj" id="wjlj" value="${xssb.wjlj}">
			<input type="hidden" name="ssbmDcode" id="ssbmDcode" value="${xssb.ssbmDcode}">
			<input type="hidden" name="wxOpenid" id="wxOpenid" value="${xssb.wxOpenid}">

			<div class="form-group">
				<label class="col-sm-2 control-label">上报内容</label>
				<div class="col-sm-10">
					<textarea rows="3" cols="5" type="text" name="xsnr" 
						class="form-control">${xssb.xsnr}</textarea>
				</div>
			</div>
			

			<div class="form-group">
				<label class="col-sm-2 control-label">上报时间</label>
				<div class="col-sm-10">
					<input type="text" id="sbsj" 
						class="form-control" value="<my:DateSubString date="${xssb.sbsj}" subNum="16"/>" />
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">上报人</label>
				<div class="col-sm-10">
					<input type="text" name="sbr" 
						class="form-control" value="${xssb.sbr}" >
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">上报人身份证号</label>
				<div class="col-sm-10">
					<input type="text" name="sfzh" 
						class="form-control" value="${xssb.sfzh}" >
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">上报人手机号</label>
				<div class="col-sm-10">
					<input type="text" name="sjh" 
						class="form-control" value="${xssb.sjh}" >
				</div>
			</div>
		
<!-- 			<div class="form-group"> -->
<!-- 				<label class="col-sm-2 control-label">处理状态</label>	 -->
				
<!-- 				<div class="col-sm-10"> -->
<!-- 				<select name="zt" class="form-control" > -->
<%-- 						<option value="0" <c:if test="${xssb.zt == '0'}">selected="selected"</c:if> >未处理</option> --%>
<%-- 						<option value="1" <c:if test="${xssb.zt == '1'}">selected="selected"</c:if> >正在核实</option> --%>
<%-- 						<option value="2" <c:if test="${xssb.zt == '2'}">selected="selected"</c:if> >正在处理</option> --%>
<%-- 						<option value="3" <c:if test="${xssb.zt == '3'}">selected="selected"</c:if> >处理结束</option> --%>
<!-- 				</select> -->
<!-- 				</div> -->
<!-- 			</div> -->
			
			<div class="form-group">
				<label class="col-sm-2 control-label">处理状态</label>
				<div class="col-sm-10">
					<select   class="form-control m-b" name="zt" >
					 <c:choose>
						 <c:when test="${xssb.zt=='0'}">
							<option value="0">未处理</option>
						</c:when>
						<c:when test="${xssb.zt=='1'}">
							<option value="1">审查通过</option>
						</c:when>
						<c:when test="${xssb.zt=='2'}">
							<option value="2">审查拒绝</option>
						</c:when>
						<c:otherwise>
							
						</c:otherwise>
					</c:choose>
                    </select>
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">备注</label>
				<div class="col-sm-10">
					<input type="text" name="bz" 
						class="form-control" value="${xssb.bz}" >
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">审查人</label>
				<div class="col-sm-10">
					<input type="text" name="scr" 
						class="form-control" readOnly="readonly" value="${xssb.scr}" >
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label">审查时间</label>
				<div class="col-sm-10">
					<input type="text" id="scsj" 
						class="form-control" readOnly="readonly" value="<my:DateSubString date="${xssb.scsj}" subNum="16"/>" />
				</div>
			</div>

			<div class="hr-line-dashed"></div>
			<div class="form-group">
				<div class="col-sm-3 col-sm-offset-9">
					<button  type="button" class="btn btn-primary pull-right m-t-n-xs" onclick="editRlqbXssb()" >保存内容</button>
				</div>
			</div>
		</form>

	</div>

	<script src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js?v=2.1.4"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/content.min.js?v=1.0.0"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/toastr/toastr.min.js"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/layer/layer.js"></script>
    
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/iCheck/icheck.min.js"></script>
    
    <script type="text/javascript">
    

    var basePath = '<%=request.getContextPath()%>';
    
    toastr.options = {
  		  "closeButton": true,
  		  "debug": false,
  		  "progressBar": true,
  		  "positionClass": "toast-top-left",
  		  "showDuration": "400",
  		  "hideDuration": "1000",
  		  "timeOut": "3000",
  		  "extendedTimeOut": "1000",
  		  "showEasing": "swing",
  		  "hideEasing": "linear",
  		  "showMethod": "fadeIn",
  		  "hideMethod": "fadeOut"
  		}
    

    var editRlqbXssb = function(){
    	var sbsj = $('#sbsj').val();
    	var scsj = $('#scsj').val();
    	
    	var result= $("#subForm").serialize();
    	result = result+"&sbsjm="+sbsj+"&scsjm="+scsj;
    	var index;
    	debugger;
    	$.ajax({
			type : "POST",
			url : basePath + "/rlqb/editXssbInfo.do",
			data : result,
			dataType : "json",
			success : function(msg) { 
				debugger;
				if (msg.errCode == '1') {
					parent.layerCallBack('1');
				}else{
					toastr.error(msg.errMsg, "提示");
				}
			},
			error : function(XMLHttpRequest, textStatus, errorThrown) {
				
				toastr.error("系统出错！", "提示");
			},
			beforeSend : function(XMLHttpRequest){
				index = layer.load(0, {
					  shade: [0.3,'#ccc'] //0.1透明度的白色背景
					});
			},
			complete : function(XMLHttpRequest, textStatus){
				layer.close(index);
			}
		});
	
		return false;
    }
    
    </script>

</body>
</html>